# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-distlib
pkgver=0.3.4
pkgrel=1
pkgdesc="Distribution utilities"
options="!check" # 1 test in tests/test_locator.py fails
url="https://bitbucket.org/pypa/distlib"
arch="noarch"
license="PSF-2.0"
depends="python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/d/distlib/distlib-$pkgver.zip"
builddir="$srcdir/distlib-$pkgver"

prepare() {
	default_prepare
	rm distlib/*.exe
}

build() {
	python3 setup.py build
}

check() {
	PYTHONHASHSEED=0 python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
87b5c151517a8043a4d714b561cc0758bd3209b71baf9dcd573a853bd036c54ac2359809b5e2d65cdeee3488757fdc63a2b1abb15e7e189bd601cde1fc85648c  distlib-0.3.4.zip
"
